#pragma once

#include <xercesc\sax2\DefaultHandler.hpp>

using namespace xercesc;
class ColladaHandler : public DefaultHandler{
	char* vertexesMsg;
	char* normalsMsg;
	char* polyList;
	bool isFloatArray;
	bool isPolyList;
	bool isP;
	bool isSourcePositions;
	bool isSourceNormals;
public:
	ColladaHandler(){
		isFloatArray = false;
		isSourcePositions = false;
		isFloatArray = false;
		isPolyList = false;
		isP = false;
		isSourcePositions = false;
		isSourceNormals = false;
	}
	void startElement
    (
        const   XMLCh* const    uri,
        const   XMLCh* const    localname,
        const   XMLCh* const    qname,
		const Attributes&	attrs
    );
	void endElement
	(
		const XMLCh* const uri,
		const XMLCh* const localname,
		const XMLCh* const qname
	);
	void characters(const XMLCh* const chars, const XMLSize_t length);
	void fatalError(const SAXParseException&);
	char* getVertexesMsg();
	char* getNormalsMsg();
	char* getPolyList();

};